<?php require( DIR_TEMPLATE.$this->config->get('config_template')."/template/common/config.tpl" ); ?>
<?php echo $header; ?>

 <?php require( DIR_TEMPLATE.$this->config->get('config_template')."/template/common/breadcrumb.tpl" );  ?>  
<?php if( $SPAN[0] ): ?>
	<div class="col-lg-<?php echo $SPAN[0];?> col-md-<?php echo $SPAN[0];?> col-sm-12 col-xs-12">
		<?php echo $column_left; ?>
	</div>

<?php endif; ?> 
<div class="col-lg-<?php echo $SPAN[1];?> col-md-<?php echo $SPAN[1];?> col-sm-12 col-xs-12">
<div id="content" class="content-blog"><?php echo $content_top; ?>
  	<!--<div class="pav-header">
		<h1><?php echo $heading_title; ?></h1>
		<a class="rss-wrapper" href="<?php echo $latest_rss;?>"><span class="icon-rss">Rss</span></a>	
	</div>  -->
  
  <div class="pav-filter-blogs">
		<div class="pav-blogs">



            <?php $count=0; foreach($leading_blogs as $blog) : $count++; ?>
            <div class="row">
            <?php
             if($count == 1) :
             ?>

                <div class="row-blog-left">
                    <?php if( $config->get('cat_show_title') ) { ?>
                    <div class="blog-header clearfix">



                    <?php if( $blog['thumb'] && $config->get('cat_show_image') ) { ?>
                    <a href="<?php echo $blog['link'];?>"   title="<?php echo $blog['title'];?>"><img src="<?php echo $blog['thumb'];?>" title="<?php echo $blog['title'];?>" align="left"/></a>
                    <?php } ?>

                        <h3 class="blog-title"><a href="<?php echo $blog['link'];?>"
                                                  title="<?php echo $blog['title'];?>"><?php echo $blog['title'];?></a></h3>

                        <?php if( $config->get('cat_show_description') ) {?>
                        <div class="description">
                        <?php echo $blog['description'];?>
                        </div>
                        <?php } ?>
                </div>




            <?php else : ?>
                <div class="row-blog-right">
                    <ul>
                        <li><a href="<?php echo $blog['link'];?>"  title="<?php echo $blog['title'];?>"><?php echo $blog['title'];?></a> </li>
                    </ul>

                </div>
            <?php endif; ?>
            </div>
            <?php endfor; ?>
                <?php foreach($secondary_blogs as $blog) : ?>
                    <div class="row">
                        <div class="blog-title"><a href="<?php echo $blog['link'];?>"  title="<?php echo $blog['title'];?>"><?php echo $blog['title'];?></a> </div>
                        <?php if( $blog['thumb'] && $config->get('cat_show_image') ) { ?>
                        <a href="<?php echo $blog['link'];?>"   title="<?php echo $blog['title'];?>"><img src="<?php echo $blog['thumb'];?>" title="<?php echo $blog['title'];?>" align="left"/></a>
                        <?php } ?>
                        <?php if( $config->get('cat_show_description') ) {?>
                        <div class="description">
                        <?php echo $blog['description'];?>
                        </div>
                        <?php } ?>
                    </div>
                <?php endfor; ?>
			<div class="pav-pagination pagination"><?php echo $pagination;?></div>
		</div>
  </div>
 

  <?php echo $content_bottom; ?></div>

</div> 
<?php if( $SPAN[2] ): ?>
<div class="col-lg-<?php echo $SPAN[2];?> col-md-<?php echo $SPAN[2];?> col-sm-12 col-xs-12">	
	<?php echo $column_right; ?>
</div>
<?php endif; ?>
<?php echo $footer; ?>